package demo2;

public class TestDemo2 {
    public static void main(String[] args) {
        Computer computer = new Computer();
        Mouse mouse = new Mouse();
        KeyBoard keyBoard = new KeyBoard();
        computer.useDevice(mouse);
        System.out.println("===========");
        computer.useDevice(keyBoard);
    }
}
